require "leveldb"

class Store
  @@db = LevelDB::DB.new("./db")
  @@hashids = Hashids.new

  def self.save(key, value : String)
    @@db.put(key, value)
    [1, key]
  end

  def self.get(key : String)
    val = @@db.get(key)
    [1, val]
  end

  def self.delete(key : String)
    @@db.delete(key)
  end

end
